﻿using Ninject.Core.Parameters;
using TestBat.IModels.Domain;
using TestBat.IViewModels.Factories;
using TestBat.IViewModels.Workspaces.Schedules;
using TestBat.ServiceLocator;

namespace TestBat.ViewModels.Factories
{
    public class ScheduleTaskViewModelFactory : IScheduleTaskViewModelFactory
    {
        public IScheduleTaskViewModel Create(IScheduleTask item)
        {
            return DefaultServiceLocator.Get<IScheduleTaskViewModel>(With.Parameters.ConstructorArgument("item", item));
        }
    }
}
